home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 24
/
AACD 24.iso
/
AACD
/
Information
/
MailingLists
/
MLSearch.awebrx
< prev
Wrap
Text File
|
2000-09-22
|
2KB
|
58 lines
/*
$VER: 1.0 MLSearch.awebrx (22-9-2000)
By Neil Bothwick
Searches mailing lists on AACD.
*/
options results
CDName = 'AACD14'
AWebPort = address()
DBdir = CDName':AACD/Information/MailingLists/'
parse arg ListArg ' ' SearchArg
/* call addlib('rexxsupport.library',0,-30,0) */
SearchStr = ''
interpret ListArg
interpret SearchArg
if SearchStr = '' then exit
if List > '' then List = List'/'
address command 'FlashFind >T:MLSearch.results' DBdir||List'messages/#? "'SearchStr'" QuietHit NoHighlight'
call open(out,'T:MLSearch.html','W')
call writeln(out,'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">')
call writeln(out,'<html><head><title>Search results</title></head><body bgcolor=white>')
call writeln(out,'<h3 align="center">Result of searching for "<font color="red">'SearchStr'</font>"</h3>')
call writeln(out,'<pre>')
call close(out)
address command 'type T:MLSearch.results >>T:MLSearch.html'
address command 'echo "</body></html>" >>T:MLSearch.html'
/*
if word(statef('T:IndexSearch.results'),2) = 0 then call writeln(out,'<h4 align="center">No matches found</h4>')
else do
call writeln(out,'<table align="center" border="0">')
call writeln(out,'<tr><th width="80%">Title</th><th width="20%">Issue</th><tr>')
call open(in,'T:IndexSearch.results','R')
do until eof(in)
line = readln(in)
if line = '' then iterate
parse var line File '|' IssueDate '|' Title '|' .
parse var File IssueNum '-' .
call writeln(out,'<tr align="left" valign="top"><td><a href="file://localhost/'DBdir||File'">'Title'</a></td>')
call writeln(out,'<td align="center"><a href="file://localhost/'DBdir||'Issue'IssueNum'.html">'IssueDate'</a></td></tr>')
end
call close(in)
call writeln(out,'</table>')
end
call writeln(out,'</body></html>')
call close(out)
*/
'Open "file://localhost/T:MLSearch.html" reload'